package com.sikaryofficial.workbench.domain.dto.req.order;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @author : wuweihong
 * @desc : 商品订单Req入参对象
 * @date : 2024-09-28
 */
@Getter
@Setter
@ToString
@ApiModel(value = "商品订单Req入参对象", description = "商品订单Req入参对象")
public class GoodsOrderReq {

    @ApiModelProperty(value = "用户id")
    private Long userId;

    /**
     * 商品id
     */
    @ApiModelProperty(value = "商品id", required = true)
    @NotNull(message = "goods id can not null.")
    private Long goodsId;
    /**
     * 商品编码
     */
    @ApiModelProperty(value = "商品编码")
    private String goodsCode;
    /**
     * 商品口味列表
     */
    @ApiModelProperty(value = "商品口味列表", required = true)
    @NotEmpty(message = "order items can not a empty set.")
    private List<OrderItemReq> orderItems;

}
